﻿package game.objects {
	import alternativa.engine3d.resources.TextureResource;
	
	public class TextureObject {
		
		public var type:String;
		public var url:String;
		public var color:uint;
		public var resource:TextureResource;
		public var alpha:Number;
		
		public static const BUMP:String			= "bump";
		public static const EMISSION:String		= "emission";
		public static const DIFFUSE:String		= "diffuse";
		public static const SPECULAR:String		= "specular";
		public static const GLOSSINESS:String	= "glossiness";
		public static const TRANSPARENT:String	= "transparent";
		public static const REFLECTION:String	= "reflection";
		public static const ENVIRONMENT:String	= "environment";
		public static const LIGHT:String		= "light";
		
		public function TextureObject(type:String, data:*, alpha:Number = 1):void {
			
			this.type	= type;
			this.url	= (data is String) ? data as String : null;
			this.color	= (data is uint) ? data as uint : null;
			this.resource	= (data is TextureResource) ? data as TextureResource : null;
			this.alpha	= alpha;
		}
		
	}
	
}